<?php

class Technical_TestController extends Zend_Controller_Action
{

	public function init()
	{
		/* Initialize action controller here */
	}

	public function indexAction()
	{
		//$roles = new Application_Model_Dao_Role();
		//$this->view->roles = $roles->getAll()->toArray();
	}

	public function addAction(){
		$request = $this->getRequest();
		$param = $request->getPost('title');
		$tytul = new Application_Model_Entities_Test();
		$tytul->setTytul( $param);
		$tytulDao = new Application_Model_Dao_Test();
		$tytulDao->saveTytul($tytul);

		$this->_helper->redirector('index');


	}
	

	public function getAction()
	{
	  $tests['1'] = "lukasz";
  				echo json_encode($tests);
	}

}
